﻿using Pigg.Contracts;

namespace Pigg.Data
{
    public class DatabaseFactory : IDatabaseFactory
    {
        private PiggDbContext _dbContext;

        public dynamic Get()
        {
            return _dbContext ?? (_dbContext = new PiggDbContext());
        }
    }
}
